\hypertarget{class_mesh}{
\section{Mesh Class Reference}
\label{class_mesh}\index{Mesh@{Mesh}}
}
{\tt \#include $<$Mesh.h$>$}

Inheritance diagram for Mesh::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_mesh}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_mesh_2af137f1571af89172b9c102302c416b}{Mesh} ()
\item 
\hyperlink{class_mesh_5940648829bdeb89d85c088a797be379}{Mesh} (\hyperlink{class_mesh}{Mesh} \&m)
\item 
\hyperlink{class_mesh_5efe4da1a4c0971cfb037bd70304c303}{$\sim$Mesh} ()
\item 
void \hyperlink{class_mesh_e374c4306a611d132b74272b18789084}{add\_\-vertex} (\hyperlink{class_vertex3_d}{Vertex3D} $\ast$v)
\begin{CompactList}\small\item\em Adds new vertex to mesh. \item\end{CompactList}\item 
void \hyperlink{class_mesh_13e312e1d6b625e8dbfe3f9661a0fddc}{add\_\-triangle} (\hyperlink{class_triangle}{Triangle} $\ast$t)
\begin{CompactList}\small\item\em Adds new triangle to mesh. \item\end{CompactList}\item 
vector$<$ \hyperlink{class_triangle}{Triangle} $\ast$ $>$ \hyperlink{class_mesh_1a1cdac92d3f661f1169a4a46535cdb0}{get\_\-face} (\hyperlink{class_triangle}{Triangle} $\ast$t)
\begin{CompactList}\small\item\em Return a face (set of triangles). \item\end{CompactList}\item 
vector$<$ \hyperlink{class_triangle}{Triangle} $\ast$ $>$ \hyperlink{class_mesh_40811a0757f1d2ca8da1ba4deef87a33}{get\_\-triangs} ()
\item 
vector$<$ \hyperlink{class_vertex3_d}{Vertex3D} $\ast$ $>$ \hyperlink{class_mesh_a776636a69f9780fc1a7a7b6ca5f02f2}{get\_\-verts} ()
\item 
\hyperlink{class_triangle}{Triangle} $\ast$ \hyperlink{class_mesh_446deae4331132f941426b2a556b185e}{get\_\-triangle} (GLuint n)
\begin{CompactList}\small\item\em Returns the n'th triangle of the mesh. \item\end{CompactList}\item 
\hyperlink{class_vertex3_d}{Vertex3D} $\ast$ \hyperlink{class_mesh_693ca1eb95065c8ae7bb776b60887941}{get\_\-vertex} (GLuint n)
\begin{CompactList}\small\item\em Returns the n'th vertex of the mesh. \item\end{CompactList}\item 
\hyperlink{class_vertex3_d}{Vertex3D} \hyperlink{class_mesh_d2950784797989b0724366db78818421}{get\_\-com} ()
\begin{CompactList}\small\item\em Returs the center of mass of the mesh. \item\end{CompactList}\item 
\hyperlink{_types_8h_7b81e258c98a6c1191e11b3f53853277}{TState} \hyperlink{class_mesh_28723e3342560a047459a6b897b8c13a}{get\_\-state} ()
\begin{CompactList}\small\item\em Returns the state of the mesh. \item\end{CompactList}\item 
void \hyperlink{class_mesh_8ba86a64b0a7c6348eea38635aca1de9}{set\_\-state} (\hyperlink{_types_8h_7b81e258c98a6c1191e11b3f53853277}{TState})
\begin{CompactList}\small\item\em Set the state of the mesh. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
vector$<$ \hyperlink{class_triangle}{Triangle} $\ast$ $>$ \hyperlink{class_mesh_dd6fb8fedd5d74afb82b7ae39829cd02}{triangs}
\item 
vector$<$ \hyperlink{class_vertex3_d}{Vertex3D} $\ast$ $>$ \hyperlink{class_mesh_8b5eb5622176d2db35e57168b1103290}{verts}
\item 
\hyperlink{class_vertex3_d}{Vertex3D} \hyperlink{class_mesh_cbff57771a971ca41103171db87fa060}{com}
\item 
\hyperlink{_types_8h_7b81e258c98a6c1191e11b3f53853277}{TState} \hyperlink{class_mesh_50bc4279055af3372e891c5e17f4fb62}{state}
\end{CompactItemize}


\subsection{Detailed Description}


Definition at line 24 of file Mesh.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_mesh_2af137f1571af89172b9c102302c416b}{
\index{Mesh@{Mesh}!Mesh@{Mesh}}
\index{Mesh@{Mesh}!Mesh@{Mesh}}
\subsubsection[{Mesh}]{\setlength{\rightskip}{0pt plus 5cm}Mesh::Mesh ()}}
\label{class_mesh_2af137f1571af89172b9c102302c416b}




Definition at line 13 of file Mesh.cpp.\hypertarget{class_mesh_5940648829bdeb89d85c088a797be379}{
\index{Mesh@{Mesh}!Mesh@{Mesh}}
\index{Mesh@{Mesh}!Mesh@{Mesh}}
\subsubsection[{Mesh}]{\setlength{\rightskip}{0pt plus 5cm}Mesh::Mesh ({\bf Mesh} \& {\em m})}}
\label{class_mesh_5940648829bdeb89d85c088a797be379}




Definition at line 15 of file Mesh.cpp.\hypertarget{class_mesh_5efe4da1a4c0971cfb037bd70304c303}{
\index{Mesh@{Mesh}!$\sim$Mesh@{$\sim$Mesh}}
\index{$\sim$Mesh@{$\sim$Mesh}!Mesh@{Mesh}}
\subsubsection[{$\sim$Mesh}]{\setlength{\rightskip}{0pt plus 5cm}Mesh::$\sim$Mesh ()}}
\label{class_mesh_5efe4da1a4c0971cfb037bd70304c303}




Definition at line 21 of file Mesh.cpp.

\subsection{Member Function Documentation}
\hypertarget{class_mesh_13e312e1d6b625e8dbfe3f9661a0fddc}{
\index{Mesh@{Mesh}!add\_\-triangle@{add\_\-triangle}}
\index{add\_\-triangle@{add\_\-triangle}!Mesh@{Mesh}}
\subsubsection[{add\_\-triangle}]{\setlength{\rightskip}{0pt plus 5cm}void Mesh::add\_\-triangle ({\bf Triangle} $\ast$ {\em t})}}
\label{class_mesh_13e312e1d6b625e8dbfe3f9661a0fddc}


Adds new triangle to mesh. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em t}]: triangle to add \end{description}
\end{Desc}


Definition at line 98 of file Mesh.cpp.\hypertarget{class_mesh_e374c4306a611d132b74272b18789084}{
\index{Mesh@{Mesh}!add\_\-vertex@{add\_\-vertex}}
\index{add\_\-vertex@{add\_\-vertex}!Mesh@{Mesh}}
\subsubsection[{add\_\-vertex}]{\setlength{\rightskip}{0pt plus 5cm}void Mesh::add\_\-vertex ({\bf Vertex3D} $\ast$ {\em v})}}
\label{class_mesh_e374c4306a611d132b74272b18789084}


Adds new vertex to mesh. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em t}]: vertex to add \end{description}
\end{Desc}


Definition at line 92 of file Mesh.cpp.\hypertarget{class_mesh_d2950784797989b0724366db78818421}{
\index{Mesh@{Mesh}!get\_\-com@{get\_\-com}}
\index{get\_\-com@{get\_\-com}!Mesh@{Mesh}}
\subsubsection[{get\_\-com}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vertex3D} Mesh::get\_\-com ()}}
\label{class_mesh_d2950784797989b0724366db78818421}


Returs the center of mass of the mesh. 



Definition at line 115 of file Mesh.cpp.\hypertarget{class_mesh_1a1cdac92d3f661f1169a4a46535cdb0}{
\index{Mesh@{Mesh}!get\_\-face@{get\_\-face}}
\index{get\_\-face@{get\_\-face}!Mesh@{Mesh}}
\subsubsection[{get\_\-face}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Triangle} $\ast$ $>$ Mesh::get\_\-face ({\bf Triangle} $\ast$ {\em t})}}
\label{class_mesh_1a1cdac92d3f661f1169a4a46535cdb0}


Return a face (set of triangles). 



Definition at line 28 of file Mesh.cpp.\hypertarget{class_mesh_28723e3342560a047459a6b897b8c13a}{
\index{Mesh@{Mesh}!get\_\-state@{get\_\-state}}
\index{get\_\-state@{get\_\-state}!Mesh@{Mesh}}
\subsubsection[{get\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TState} Mesh::get\_\-state ()}}
\label{class_mesh_28723e3342560a047459a6b897b8c13a}


Returns the state of the mesh. 



Definition at line 127 of file Mesh.cpp.\hypertarget{class_mesh_446deae4331132f941426b2a556b185e}{
\index{Mesh@{Mesh}!get\_\-triangle@{get\_\-triangle}}
\index{get\_\-triangle@{get\_\-triangle}!Mesh@{Mesh}}
\subsubsection[{get\_\-triangle}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Triangle} $\ast$ Mesh::get\_\-triangle (GLuint {\em n})}}
\label{class_mesh_446deae4331132f941426b2a556b185e}


Returns the n'th triangle of the mesh. 



Definition at line 104 of file Mesh.cpp.\hypertarget{class_mesh_40811a0757f1d2ca8da1ba4deef87a33}{
\index{Mesh@{Mesh}!get\_\-triangs@{get\_\-triangs}}
\index{get\_\-triangs@{get\_\-triangs}!Mesh@{Mesh}}
\subsubsection[{get\_\-triangs}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Triangle} $\ast$ $>$ Mesh::get\_\-triangs ()}}
\label{class_mesh_40811a0757f1d2ca8da1ba4deef87a33}


\begin{Desc}
\item[Returns:]Vector of triangles \end{Desc}


Definition at line 80 of file Mesh.cpp.\hypertarget{class_mesh_693ca1eb95065c8ae7bb776b60887941}{
\index{Mesh@{Mesh}!get\_\-vertex@{get\_\-vertex}}
\index{get\_\-vertex@{get\_\-vertex}!Mesh@{Mesh}}
\subsubsection[{get\_\-vertex}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vertex3D} $\ast$ Mesh::get\_\-vertex (GLuint {\em n})}}
\label{class_mesh_693ca1eb95065c8ae7bb776b60887941}


Returns the n'th vertex of the mesh. 



Definition at line 110 of file Mesh.cpp.\hypertarget{class_mesh_a776636a69f9780fc1a7a7b6ca5f02f2}{
\index{Mesh@{Mesh}!get\_\-verts@{get\_\-verts}}
\index{get\_\-verts@{get\_\-verts}!Mesh@{Mesh}}
\subsubsection[{get\_\-verts}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Vertex3D} $\ast$ $>$ Mesh::get\_\-verts ()}}
\label{class_mesh_a776636a69f9780fc1a7a7b6ca5f02f2}


\begin{Desc}
\item[Returns:]Vector of vertices \end{Desc}


Definition at line 86 of file Mesh.cpp.\hypertarget{class_mesh_8ba86a64b0a7c6348eea38635aca1de9}{
\index{Mesh@{Mesh}!set\_\-state@{set\_\-state}}
\index{set\_\-state@{set\_\-state}!Mesh@{Mesh}}
\subsubsection[{set\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}void Mesh::set\_\-state ({\bf TState} {\em s})}}
\label{class_mesh_8ba86a64b0a7c6348eea38635aca1de9}


Set the state of the mesh. 



Definition at line 121 of file Mesh.cpp.

\subsection{Member Data Documentation}
\hypertarget{class_mesh_cbff57771a971ca41103171db87fa060}{
\index{Mesh@{Mesh}!com@{com}}
\index{com@{com}!Mesh@{Mesh}}
\subsubsection[{com}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vertex3D} {\bf Mesh::com}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{class_mesh_cbff57771a971ca41103171db87fa060}


Center of mass of the mesh 

Definition at line 32 of file Mesh.h.\hypertarget{class_mesh_50bc4279055af3372e891c5e17f4fb62}{
\index{Mesh@{Mesh}!state@{state}}
\index{state@{state}!Mesh@{Mesh}}
\subsubsection[{state}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TState} {\bf Mesh::state}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{class_mesh_50bc4279055af3372e891c5e17f4fb62}


State of the mesh 

Definition at line 34 of file Mesh.h.\hypertarget{class_mesh_dd6fb8fedd5d74afb82b7ae39829cd02}{
\index{Mesh@{Mesh}!triangs@{triangs}}
\index{triangs@{triangs}!Mesh@{Mesh}}
\subsubsection[{triangs}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Triangle} $\ast$$>$ {\bf Mesh::triangs}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{class_mesh_dd6fb8fedd5d74afb82b7ae39829cd02}


Triangles of the mesh 

Definition at line 28 of file Mesh.h.\hypertarget{class_mesh_8b5eb5622176d2db35e57168b1103290}{
\index{Mesh@{Mesh}!verts@{verts}}
\index{verts@{verts}!Mesh@{Mesh}}
\subsubsection[{verts}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Vertex3D} $\ast$$>$ {\bf Mesh::verts}\hspace{0.3cm}{\tt  \mbox{[}protected\mbox{]}}}}
\label{class_mesh_8b5eb5622176d2db35e57168b1103290}


Vertices of the mesh 

Definition at line 30 of file Mesh.h.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/home/javier/Escritorio/core/include/\hyperlink{_mesh_8h}{Mesh.h}\item 
/home/javier/Escritorio/core/src/\hyperlink{_mesh_8cpp}{Mesh.cpp}\end{CompactItemize}
